#include <cstdio>
#include <cstring>
#include <error.h>
#include "lua_help.h"
extern "C"
{
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
#include "base.cpp"
#include "c_call_lua.cpp"
#include "lua_call_c.cpp"
#include "lua_oop.cpp"


const char *fname = "demo.lua";

int main(void)
{
    read_var(fname);
    read_table(fname);
    read_func(fname);
    c_call_lua();
    lua_call_c();
    lua_oop();
    return 0;
}
